package com.example.horizonserver.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.horizonserver.pojo.entity.Maintain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MaintainMapper extends BaseMapper<Maintain> {

    /**
     * 查询带关联的分页数据
     * @param page
     * @param lqw
     * @return
     */
    IPage<Maintain> selectPageWithRelations(Page<Maintain> page,@Param(Constants.WRAPPER) QueryWrapper<Maintain> lqw);
}
